package net.siufung.core.utils.token;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author siufung
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TokenInfo implements Serializable {

	private static final long serialVersionUID = 2585742211251246809L;
	
	/**
	 * 令牌值
	 */
	@NotBlank
	private String token;

	/**
	 * 加密密钥
	 */
	private String secret;

	/**
	 * 过期秒数
	 */
	@NotNull
	private Integer expireMinutes;
	
	

}
